﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Administrator.Master" AutoEventWireup="true" CodeBehind="ViewResult.aspx.cs" Inherits="ProjectSemIII.Administrator.Survey.ViewResult" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    View Survey Result
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="fluid">
        <form id="validate" class="main" method="post" action="POST">
            <fieldset>
                <div class="widget">
                    <div class="whead">
                        <h6>Survey Information</h6>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <div class="grid3">
                            <label>Survey Catalog:<span class="req">*</span></label>
                        </div>
                        <div class="grid9">
                            <asp:Label runat="server" ID="lbCatalog"></asp:Label>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <div class="grid3">
                            <label>Survey Name:<span class="req">*</span></label>
                        </div>
                        <div class="grid9">
                            <asp:Label runat="server" ID="lbSurveyName"></asp:Label>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <div class="grid3">
                            <label>Survey Description:<span class="req">*</span></label>
                        </div>
                        <div class="grid9">
                            <asp:Label runat="server" ID="lbDesc"></asp:Label>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <div class="grid3">
                            <label>Survey Group:<span class="req">*</span></label>
                        </div>
                        <div class="grid9">
                            <asp:Label runat="server" ID="lbJoinGroup"></asp:Label>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <div class="grid3">
                            <label>Survey Image:</label>
                        </div>
                        <div class="grid9">
                            <asp:Image runat="server" ID="imageSurvey" Width="100" Height="100" />
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <div class="grid3">
                            <label>Start Date:<span class="req">*</span></label>
                        </div>
                        <div class="grid9">
                            <asp:Label runat="server" ID="lbStartDate"></asp:Label>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <div class="grid3">
                            <label>Dead Line:<span class="req">*</span></label>
                        </div>
                        <div class="grid9">
                            <asp:Label runat="server" ID="lbDeadLine"></asp:Label>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
            </fieldset>
        </form>
    </div>

    <div class="divider"><span></span></div>
    <div class="pagination" id="pagination" runat="server">
        <asp:Repeater ID="totalPage" runat="server">
            <HeaderTemplate>
                <ul class="pages">
                    <li class="prev">
                        <asp:LinkButton runat="server" ID="btPrevPage" OnClick="btPrevPage_Click">&lt;</asp:LinkButton></li>
            </HeaderTemplate>
            <ItemTemplate>
                <li>
                    <asp:LinkButton runat="server" ID="PageNumber" OnClick="PageNumber_Click" Text='<%# Container.DataItem.ToString() %>'></asp:LinkButton></li>
            </ItemTemplate>
            <FooterTemplate>
                <li class="next">
                    <asp:LinkButton runat="server" ID="btNextPage" OnClick="btPrevPage_Click">&gt;</asp:LinkButton></li>
                </ul>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    <div class="fluid">
        <div class="widget">
            <div class="whead">
                <h6 runat="server" id="questionNumber">Question Number</h6>
                <div class="clear"></div>
            </div>
            <div class="formRow">
                <div class="grid3">
                    <label>Question Detail:<span class="req">*</span></label>
                </div>
                <div class="grid9">
                    <asp:Label runat="server" ID="lbQuestionDetail" Text=""></asp:Label>
                </div>
                <div class="clear"></div>
            </div>
            <div class="formRow" runat="server" id="nonComment">
                <div class="grid3">
                    <label>Answers:<span class="req">*</span></label>
                </div>
                <div class="grid9">
                    <asp:Repeater ID="allResult" runat="server">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lbAnswer" Text='<%# Eval("title").ToString() + "    :  "+ Eval("percent").ToString() + "%" %>'></asp:Label>
                            <div class="contentProgress mt8">
                                <div class="barB tipS" style='<%# "width:" + DataBinder.Eval(Container.DataItem, "percent") + "%;" %>' title='<%# DataBinder.Eval(Container.DataItem, "percent") + "%" %>' runat="server" id="bar2"></div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div class="clear"></div>
            </div>
            <asp:Repeater ID="resultComment" runat="server">
                <ItemTemplate>
                    <div class="formRow">
                        <div class="grid3">
                            <asp:Label runat="server" ID="lbAnswerNumber" Text='<%# string.Format("Answer Number {0}", Container.ItemIndex + 1) %>'></asp:Label>
                        </div>
                        <div class="grid9">
                            <asp:Literal runat="server" ID="answersQuestion" Text='<%# Eval("Answers") %>'></asp:Literal>
                        </div>
                        <div class="clear"></div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <div class="formRow">
                <div class="grid3">
                    <asp:Button ID="btPrev" Text="Prev Question" OnClick="btPrev_Click" runat="server" CssClass="buttonS bLightBlue" />
                </div>
                <div class="grid9">
                    <asp:Button ID="btNext" Text="Next Question" OnClick="btNext_Click" runat="server" CssClass="buttonS bLightBlue" />
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
</asp:Content>
